<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>演员编辑页面</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <div class="text" style=" text-align:center;"><h1>演员编辑页面</h1></div>
    <div class="text" style="..."><a>学号：1604220513</a><br>姓名：黄建锋</br></div>
</div>
<div class="container">
    <form method="post" th:action="@{/role/edit}">

        <div class="form-group">
            <label for="actor_name">演员名字</label>
            <input type="text" class="form-control" name="actor_name" th:value="${info.actor.name}"/>
        </div>
        <div class="form-group">
            <label for="role_name">扮演角色</label>
            <input type="text" class="form-control" name="role_name" th:value="${info.name}"/>
        </div>

        <input type="hidden" class="form-control" name="id" th:value="${info.id}"/>
        <input type="hidden" class="from-control" name="movie_id" th:value="${info.movie.id}"/>

        <button type="submit" class="btn btn-primary">保存</button>
        <button type="reset" class="btn btn-primary">取消</button>
    </form>
</div>
</body>
</html>